﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAM_Edu.dao;
using SAM_Edu.entity;

namespace SAM_Edu.control
{

    public class Logon
    {
        static Accounts accounts;
       public static bool verifyLogonDetails;
       public static int getuserid;
        public static Accounts AuthenticateUser(string username, string password)
        {
            var getvalues = daoAccounts.VerifyLogonDetails(username, password);
            verifyLogonDetails = getvalues.Key;
            getuserid = getvalues.Value;
            
            return accounts;
        }
    }

}
